package cn.chiship.framework.third.biz.wxpub.pojo.dto;

import cn.chiship.framework.common.constants.TipConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

/**
 * 二维码 表单
 * 2022/7/14
 *
 * @author LiJian
 */
@ApiModel(value = "二维码 表单")
public class ThirdWechatQrcodeDto {
    @ApiModelProperty(value = "标题")
    @NotEmpty(message = "标题" + TipConstants.NOT_EMPTY)
    @Length(min = 1, max = 30)
    private String title;

    @ApiModelProperty(value = "二维码类型（0 临时二维码  1 永久二维码）")
    @NotNull(message = "二维码类型" + TipConstants.NOT_EMPTY)
    @Min(value = 0)
    @Max(value = 1)
    private Byte type;

    @ApiModelProperty(value = "超时时间")
    private Integer expireSeconds;

    @ApiModelProperty(value = "内容")
    @NotNull(message = "内容" + TipConstants.NOT_EMPTY)
    private String article;

    @ApiModelProperty(value = "内容类型 0 纯文本 1 资源库选择")
    @NotNull(message = "内容类型" + TipConstants.NOT_EMPTY)
    @Min(value = 0)
    @Max(value = 1)
    private Byte articleType;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public Integer getExpireSeconds() {
        return expireSeconds;
    }

    public void setExpireSeconds(Integer expireSeconds) {
        this.expireSeconds = expireSeconds;
    }

    public String getArticle() {
        return article;
    }

    public void setArticle(String article) {
        this.article = article;
    }

    public Byte getArticleType() {
        return articleType;
    }

    public void setArticleType(Byte articleType) {
        this.articleType = articleType;
    }
}